<?php
class Router extends Controller {

	function Router()
	{
		parent::Controller();
		$this->load->model('router_model');
	}

	function index()
	{	$this->load->view('router/table');
	}

	function json()
	{
		
		$data['router_detail'] = $this->router_model->get_router_detail();
		//'routername' table have 2 fields. // EIP and NAME

		$this->load->view('router/jsondata',$data);
	}
	
}
?>